<template>
	<view class="content">

		<view class="header">
			<view class="title">
				<text>我的店铺</text>
			</view>

			<view class="school_user">
				<view class="school_user_left">
					<image src="../../../static/school/tx.png" mode=""></image>
					<text>店铺名称</text>
				</view>
				<view class="school_user_right">
					<image src="../../../static/school/qh.png" mode=""></image>
					<text>店铺切换</text>
				</view>
			</view>

			<view class="myschool">
				<view class="myschool_tit">
					<text>店铺维护</text>
				</view>

				<view class="myschool_list">
					<view class="myschool_list1" v-for="(item,index) in myschoollist" @click="towh(item.id)">
						<image :src="item.img" mode=""></image>
						<text>{{item.title}}</text>
					</view>
				</view>
			</view>


			<view class="schoolmanage">
				<view class="schoolmanage_tit">
					<text>订单</text>
				</view>

				<view class="schoolmanage_list">
					<view class="schoolmanage_list1" v-for="(item,index) in schoolmanagelist" @click="todd(item.id)">
						<image :src="item.img" mode=""></image>
						<text>{{item.title}}</text>
					</view>
				</view>
			</view>


			<view class="course">
				<view class="course_tit">
					<text>客户</text>
				</view>

				<view class="course_list">
					<view class="course_list1" v-for="(item,index) in courselist" @click="tokh(item.id)">
						<image :src="item.img" mode=""></image>
						<text>{{item.title}}</text>
					</view>
				</view>

			</view>


			<view class="ts">
				<view class="ts_tit">
					<text>客户</text>
				</view>

				<view class="ts_list">
					<view class="ts_list1" v-for="(item,index) in tslist" @click="kh(item.id)">
						<image :src="item.img" mode=""></image>
						<text>{{item.title}}</text>
					</view>
				</view>

			</view>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				a: 0,
				b: 0,
				c: 0,

				myschoollist: [{
						id: 0,
						img: '../../../static/class/goods.png',
						title: '店铺资料'
					},
					{
						id: 1,
						img: '../../../static/class/goods.png',
						title: '待办事项'
					},
					{
						id: 2,
						img: '../../../static/class/goods.png',
						title: '供货商管理'
					},
					{
						id: 3,
						img: '../../../static/class/goods.png',
						title: '商品管理'
					},
					{
						id: 4,
						img: '../../../static/class/goods.png',
						title: '子管理员'
					},
					{
						id: 5,
						img: '../../../static/class/goods.png',
						title: '教师管理'
					}
				],
				schoolmanagelist: [{
						id: 0,
						img: '../../../static/class/goods.png',
						title: '全部订单'
					},
					{
						id: 1,
						img: '../../../static/class/goods.png',
						title: '统计与下载'
					},
				],
				courselist: [{
						id: 0,
						img: '../../../static/class/goods.png',
						title: '订单二维码'
					},
					{
						id: 1,
						img: '../../../static/class/goods.png',
						title: '我的客户'
					},
					{
						id: 2,
						img: '../../../static/class/goods.png',
						title: '客户库存'
					},
					{
						id: 3,
						img: '../../../static/class/goods.png',
						title: '指定价格'
					}
				],

				tslist: [{
						id: 0,
						img: '../../../static/class/goods.png',
						title: '上传特色课'
					},
					{
						id: 1,
						img: '../../../static/class/goods.png',
						title: '已有特色课'
					},
					{
						id: 2,
						img: '../../../static/class/goods.png',
						title: '老师推广'
					},
					{
						id: 3,
						img: '../../../static/class/goods.png',
						title: '老师开班'
					},
					{
						id: 4,
						img: '../../../static/class/goods.png',
						title: '老师结课'
					},
				]
			}
		},
		methods: {
			towh(id) {
				this.a = id
				if (this.a == 0) {

				} else if (this.a == 1) {
					uni.navigateTo({
						url: '/pages/shop/mushop/shop_matter'
					})
				} else if (this.a == 4) {
					uni.navigateTo({
						url: '/pages/shop/mushop/admin'
					})
				} else if (this.a == 5) {
					uni.navigateTo({
						url: '/pages/shop/mushop/teacher_admin'
					})
				} else if (this.a == 3) {
					uni.navigateTo({
						url: '/pages/shop/mushop/goods_admin'
					})
				}
			},
			tokh(id) {
				this.c = id
				if (this.c == 0) {

				} else if (this.c == 1) {
					uni.navigateTo({
						url: '/pages/shop/mushop/mycustomer'
					})
				} else if (this.c == 2) {
					uni.navigateTo({
						url: '/pages/shop/mushop/customer_inventory'
					})
				} else if (this.c == 3) {
					uni.navigateTo({
						url: '/pages/shop/mushop/specify_price'
					})
				}
			},
			todd(id) {
				if (id == 0) {
					uni.navigateTo({
						url: '/pages/shop/mushop/order'
					})
				} else if (id == 1) {
					uni.navigateTo({
						url: '/pages/shop/mushop/download'
					})
				}
			},
			kh(id) {
				console.log(id)
				if (id === 4) {
					uni.navigateTo({
						url: '/pages/shop/mushop/class_auditing'
					})
				} else if (id == 1) {
					uni.navigateTo({
						url: '/pages/shop/mushop/have_characteristic'
					})
				} else if (id == 0) {
					uni.navigateTo({
						url: '/pages/shop/mushop/update_characteristic'
					})
				}
			}
		}
	}
</script>

<style>
	.content {
		height: 1920rpx;
		background: #FAFAFA;
		padding-bottom: 30rpx;
	}

	.header {
		width: 750rpx;
		height: 480rpx;
		background: linear-gradient(180deg, #1789FF 0%, #93C3F9 100%);
		border-radius: 0rpx 0rpx 0rpx 0rpx;
	}

	.title {
		display: flex;
		justify-content: center;
		padding-top: 118rpx;
		font-family: PingFang SC, PingFang SC;
		font-weight: bold;
		font-size: 32rpx;
		color: #333333;
	}

	.school_user {
		display: flex;
		margin-top: 36rpx;
		align-items: center;
		padding-left: 30rpx;
		padding-right: 30rpx;
	}

	.school_user_left {
		display: flex;
		align-items: center;
	}

	.school_user_left image {
		width: 104rpx;
		height: 104rpx;
	}

	.school_user_left text {

		font-family: PingFang SC, PingFang SC;
		font-weight: bold;
		font-size: 32rpx;
		color: #FFFFFF;
		margin-left: 32rpx;
	}

	.school_user_right {
		width: 196rpx;
		height: 80rpx;
		background: #FFFFFF;
		border-radius: 16rpx 16rpx 16rpx 16rpx;
		margin-left: auto;
		display: flex;
		align-items: center;
		justify-content: center;
	}

	.school_user_right image {
		width: 32rpx;
		height: 40rpx;
	}

	.school_user_right text {
		font-family: PingFang SC, PingFang SC;
		font-weight: 500;
		font-size: 28rpx;
		color: #666666;
	}

	.myschool {
		width: 690rpx;
		height: 490rpx;
		background: #FFFFFF;
		box-shadow: 0rpx 4rpx 16rpx 0rpx rgba(199, 199, 199, 0.1);
		border-radius: 12rpx 12rpx 12rpx 12rpx;
		margin: 40rpx auto 40rpx;
	}

	.myschool_tit {

		font-family: PingFang SC, PingFang SC;
		font-weight: bold;
		font-size: 32rpx;
		color: #333333;
		padding-top: 24rpx;
		padding-left: 24rpx;
	}

	.myschool_list {
		display: flex;

		flex-wrap: wrap;
	}

	.myschool_list1 {
		width: 25%;
		display: flex;
		margin-top: 30rpx;
		flex-direction: column;

	}

	.myschool_list1 image {
		width: 96rpx;
		height: 96rpx;
		margin: auto;
	}

	.myschool_list1 text {

		font-family: PingFang SC, PingFang SC;
		font-weight: 500;
		font-size: 28rpx;
		color: #333333;
		margin: 8rpx auto 0;
	}

	.schoolmanage {
		width: 690rpx;
		height: 294rpx;
		background: #FFFFFF;
		box-shadow: 0rpx 4rpx 16rpx 0rpx rgba(199, 199, 199, 0.1);
		border-radius: 12rpx 12rpx 12rpx 12rpx;
		margin: 40rpx auto 40rpx;
	}

	.schoolmanage_tit {
		font-family: PingFang SC, PingFang SC;
		font-weight: bold;
		font-size: 32rpx;
		color: #333333;
		padding-top: 24rpx;
		padding-left: 24rpx;
	}

	.schoolmanage_list {
		display: flex;
		margin-top: 36rpx;
	}

	.schoolmanage_list1 {
		width: 25%;
		display: flex;
		flex-direction: column;
	}

	.schoolmanage_list1 image {
		width: 96rpx;
		height: 96rpx;
		margin: auto;
	}

	.schoolmanage_list1 text {

		font-family: PingFang SC, PingFang SC;
		font-weight: 500;
		font-size: 28rpx;
		color: #333333;
		margin: 8rpx auto 0;
	}

	.course {
		width: 690rpx;
		height: 294rpx;
		background: #FFFFFF;
		box-shadow: 0rpx 4rpx 16rpx 0rpx rgba(199, 199, 199, 0.1);
		border-radius: 12rpx 12rpx 12rpx 12rpx;
		margin: 40rpx auto 40rpx;
	}

	.course_tit {
		font-family: PingFang SC, PingFang SC;
		font-weight: bold;
		font-size: 32rpx;
		color: #333333;
		padding-top: 24rpx;
		padding-left: 24rpx;
	}

	.course_list {
		display: flex;
		margin-top: 36rpx;
	}

	.course_list1 {
		width: 25%;
		display: flex;
		flex-direction: column;
	}

	.course_list1 image {
		width: 96rpx;
		height: 96rpx;
		margin: auto;
	}

	.course_list1 text {

		font-family: PingFang SC, PingFang SC;
		font-weight: 500;
		font-size: 28rpx;
		color: #333333;
		margin: 8rpx auto 0;
	}


	.ts {
		width: 690rpx;
		height: 454rpx;
		background: #FFFFFF;
		box-shadow: 0rpx 4rpx 16rpx 0rpx rgba(199, 199, 199, 0.1);
		border-radius: 12rpx 12rpx 12rpx 12rpx;
		margin: 40rpx auto 40rpx;
	}

	.ts_tit {
		font-family: PingFang SC, PingFang SC;
		font-weight: bold;
		font-size: 32rpx;
		color: #333333;
		padding-top: 24rpx;
		padding-left: 24rpx;
	}

	.ts_list {
		display: flex;
		margin-top: 36rpx;
		flex-wrap: wrap;
	}

	.ts_list1 {
		width: 25%;
		display: flex;
		margin-top: 20rpx;
		flex-direction: column;
	}

	.ts_list1 image {
		width: 96rpx;
		height: 96rpx;
		margin: auto;
	}

	.ts_list1 text {

		font-family: PingFang SC, PingFang SC;
		font-weight: 500;
		font-size: 28rpx;
		color: #333333;
		margin: 8rpx auto 0;
	}
</style>